package com.lcf.framework.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 描述：实体基类
 *
 * @author lcf
 * @since 2025/2/25 14:02
 */
@Data
@NoArgsConstructor
public class BaseVO {
    @Schema(description = "主键id")
    private Long id;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonIgnore
    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建人姓名")
    private String createUser;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @JsonIgnore
    @Schema(description = "更新人id")
    private Long updateBy;

    @Schema(description = "更新人姓名")
    private String updateUser;
}
